﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true"
    Codebehind="changePass.aspx.cs" Inherits="CMS.admin.changePass" Title="Hệ thống quản trị nội dung - Đổi mật khẩu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="border: solid 1px #ccc;">
        <div id="toolbox">
            <div class="header" style="float: left; margin-left: -40px;">
                <img src="../images/Toolbox/title-article.png" alt="" id="imgHeader" />
                Người dùng: thay đổi mật khẩu
            </div>
            <div style="float: right;">
                <table class="toolbar">
                    <tr>
                        <td align="center">
                            <asp:LinkButton ID="btnUpdate" runat="server" OnClick="btnUpdate_Click">
                                <asp:Label ID="Label1" CssClass="Icon-32-Save" runat="server" />
                                Cập nhật
                            </asp:LinkButton>
                        </td>
                        <td align="center">
                            <asp:LinkButton ID="btnClose" CausesValidation="false" runat="server" OnClick="btnClose_Click">
                                <asp:Label ID="Label4" CssClass="Icon-32-Cancel" runat="server" />
                                Đóng lại
                            </asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <p align="center">
        <br />
        <asp:Label ID="lblMessage" runat="server" BackColor="White" BorderColor="White" ForeColor="Red"></asp:Label>
    </p>
    <div id="content-box">
        <div class="t">
            <div class="t">
                <div class="t">
                </div>
            </div>
        </div>
        <div class="m" style="height: 520px;">
            <!--table2:data form-->
            <table width="830" cellpadding="5" border="0" cellspacing="5">
                <tr>
                    <td align="right" style="width: 150px" valign="top">
                        <asp:Label ID="Label3" runat="server" Text="Tên đăng nhập:"></asp:Label>
                    </td>
                    <td style="text-align: left">
                        <asp:Label ID="lblUserName" runat="server" Font-Bold="true"></asp:Label>
                    </td>
                </tr>
                <%-- update user--%>
                <% if (Session["UserId"].ToString() != "1") //super admin
                  {%>
                <tr>
                    <td align="right" style="width: 150px" valign="top">
                        <asp:Label ID="Label2" runat="server" Text="Mật khẩu cũ:"></asp:Label>
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox ID="txtOldPass" runat="Server" Width="200px" TextMode="Password"></asp:TextBox>
                        <font color="#ff0000">*</font>&nbsp;&nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPass"
                            ErrorMessage="Trường bắt buộc nhập liệu"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <%} %>
                <tr>
                    <td align="right" style="width: 150px" valign="top">
                        <asp:Label ID="Label5" runat="server" Text="Mật khẩu:"></asp:Label>
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox ID="txtPass" runat="Server" Width="200px" TextMode="Password" MaxLength="50"></asp:TextBox>
                        <font color="#ff0000">*</font>&nbsp;&nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPass"
                            ErrorMessage="Trường bắt buộc nhập liệu"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 150px" valign="top">
                        <asp:Label ID="Label6" runat="server" Text="Nhập lại mật khẩu:"></asp:Label>
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox ID="txtRePass" runat="Server" Width="200px" TextMode="Password" MaxLength="50"></asp:TextBox>
                        <font color="#ff0000">*</font>&nbsp;&nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtRePass"
                            ErrorMessage="Trường bắt buộc nhập liệu"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator2" Font-Size="8" runat="server" ControlToCompare="txtPass"
                            ControlToValidate="txtRePass" ErrorMessage="Mật khẩu không khớp nhau" SetFocusOnError="true"
                            Display="Dynamic"></asp:CompareValidator>
                    </td>
                </tr>
            </table>
            <!--end:table2-->
            <br />
            <div class="clr">
            </div>
        </div>
        <div class="b">
            <div class="b">
                <div class="b">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
